
# Esri官方帮助文档举例
import arcpy
from arcpy import env
env.workspace = "Database Connections\Connection to gpserver.sde"
arcpy.RegisterWithGeodatabase_management(r'TOOLBOX.REGGDB_LZ77')